package org.wk.core.web.extend.thymeleaf;

import org.wk.core.web.tool.JSONUtils;

public class JSONExpressionObject {
	public Object stringtojson(String content,String className) throws ClassNotFoundException{
		Class<?> clazz = Class.forName(className);
		Object obj = JSONUtils.jsonCovertBean(content, clazz);
		return obj;
	}
	public String objecttojson(Object obj) throws ClassNotFoundException{
		return JSONUtils.beanCovertJSON(obj);
	}
}
